package com.define.commons.demo.domain;

import com.define.commons.dao.domain.BaseModel;
import lombok.*;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @Author xiewenlong
 * @Date 2018/11/14 17:18
 */
@Data
@Entity
@Table(schema = "dy_zwsp", name = "demo_teacher")
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Teacher extends BaseModel {

    private String name;
    private Integer age;
    private String sex;

    @Transient
    private List<Student> students;
}
